package lab01;

public class Test11 {
    public static void main(String[] args) {
        int flag=1;
        for(int i=1;i<=100;i++){
            int j;
            for(j=2;j<i;j++){
                if(i%j==0){
                    break;
                }
            }
            if(j==i){
                if(flag%5==0){
                    System.out.println(i+"\t");
                    System.out.println();
                }
                else{
                    System.out.println(i+"");
                }
                flag++;
            }
        }
    }
}
